package com.javatest.springboottask.controller;

import com.javatest.springboottask.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/4/24 14:40
 */
@RestController
public class AsyncController {

    @Autowired
    private AsyncService service;

    @RequestMapping("/hello")
    public String hello() {
        service.hello();
        return "success";
    }
}
